import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12

ApplicationWindow {
    id: applicationWindow
    visible: true
    width: 640
    height: 480
    title: qsTr("QtQuick Application Window Empty")

    TextArea{
        id: area
        anchors.fill: parent
        Text {
            id: text1
            y: 363
            width: parent.width
            height:112
            text: "1. Press Menus\r\n2. Press toolbar\r\n3. Press Ctrl+[Fistst Letter]\r\n Then show message in the area."
            anchors.left: parent.left
            anchors.leftMargin: 0
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 5
        }

    }

    Action{
        id:actionNew
        text: "&New"
        shortcut:StandardKey.New
        onTriggered: {
            area.placeholderText="To do -New"
        }
    }


    Action{
        id:actionOpen
        text: "&Open"
        shortcut:StandardKey.Open
        onTriggered: {
            area.placeholderText="To do -Open"
        }
    }
    Action{
        id:actionSave
        text: "&Save"
        shortcut:StandardKey.Save
        onTriggered: {
            area.placeholderText="To do -Save"
        }
    }

    menuBar:  MenuBar{
        Menu{
            title:"Files"
            MenuItem{action:actionNew}
            MenuItem{action:actionOpen}
            MenuItem{action:actionSave}
        }
    }
    header: ToolBar{
        RowLayout{
            ToolButton{action:actionNew}
            ToolButton{action:actionOpen}
            ToolButton{action:actionSave}
        }

    }


}
